//统一管理咱们项目用户相关的接口
import request from "@/utils/request";
import type {
    HandleResponseData
} from "../../common/type";


import {ActCodeListReponseData} from "@/api/sys/actCode/type";

//项目用户相关的请求地址
enum API {

    //列表
    ACTCODE_LIST_URL = "/bg/actCode/pageList",
    //新增
    ACTCODE_ADD_URL = "/bg/actCode/add",
}

export const reqAddActCode = () => request.post<any, HandleResponseData>(API.ACTCODE_ADD_URL)


export const reqActCodeList = (page: number, pageSize: number) =>
    request.get<any, ActCodeListReponseData>(API.ACTCODE_LIST_URL+`?&page=${page}&pageSize=${pageSize}`)



